/*
 * @Author: your name
 * @Date: 2021-11-18 00:01:04
 * @LastEditTime: 2021-11-25 19:26:54
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \admin-template\src\store\modules\app.js
 */
import Cookies from 'js-cookie'

const state = {
  // 任务计算结果
  taskResult: ``
}

const mutations = {
  UPDATE_TASK_RESULT: (state, log) => {
    state.taskResult = log
  },
}

const actions = {
  updateTaskResult({ commit }, log) {
    commit('UPDATE_TASK_RESULT', log)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
